#include "Common/Lib/TimeScriptFunc.h"
#include "Common/Utility/ServerTime.h"

using namespace luabridge;

int RegistTimeScriptFunc(lua_State* state) 
{
    getGlobalNamespace(state)
        .beginNamespace("CppTime")
        .addFunction("GetElapseTime", GetElapseTime)
        .endNamespace();
    return 0;
}

uint32_t GetElapseTime()
{
    return ServerTime::CurElapse();
}
